package heima_bixiangdong;

public class MyThread1 extends Thread {

    @Override
    public void run() {

        System.out.println("run()方法里面写线程任务代码 " + Thread.currentThread().getName());
        // System.out.println("Thread.currentThread().getId() "+Thread.currentThread().getId());
        // System.out.println("Thread.currentThread().getPriority() "+Thread.currentThread().getPriority());
        // System.out.println("Thread.currentThread().isAlive() "+Thread.currentThread().isAlive());
        for (int i = 1; i <= 11; i++) {
            System.out.println(Thread.currentThread().getName() + "..." + Thread.currentThread().getId() + "..." + i);
        }
        System.out.println("Thread.currentThread().isAlive() " + Thread.currentThread().isAlive() + "..." + Thread.currentThread().getName() + "..." + Thread.currentThread().getId());
        // int[] arr = new int[3];
        // System.out.println(arr[3]);
    }
}
